package cn.demomaster.quickdb_annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import java.text.SimpleDateFormat;

/**
 * Created by cgq
 * 表字段注解
 * 通过mapper方式编译时生成
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.CLASS)
public @interface Column {
    String name() default "";
    String typeAffinity() default "NONE";// 默认值可以是 "INTEGER", "REAL", "TEXT", "BLOB", "NONE"
    boolean primaryKey() default false;
    boolean autoIncrement() default false;
    boolean notNull() default false;
    boolean unique() default false;
    String defaultValue() default "";
    String comment() default "";//注释
    String valueFormat() default "";
}
